<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:x="https://www.texmacs.org/2002/extensions" xmlns:m="http://www.w3.org/1998/Math/MathML">
  <head>
    <title>TeXmacs notes</title>
    <meta content="TeXmacs 1.99.19" name="generator"></meta>
    <link href="../resources/notes-base.css" type="text/css" rel="stylesheet"></link>
    <link href="../resources/blog-icon.png" rel="icon"></link>
    <script src="../resources/highlight.pack.js" language="javascript" defer></script>
    <script src="../resources/notes-base.js" language="javascript" defer></script>
  </head>
  <body>
    <div class="toggle" style="display: none">
      <p>
        
      </p>
      <p>
        
      </p>
      <p>
        
      </p>
      <p>
        
      </p>
    </div>
    <div class="notes-header">
      <p>
        <img class="image" src="../resources/texmacs-blog-transparent.png" width="28.116784"></img><span style="margin-left: 2pt"></span><a href="./main.html">[main]</a><em
        class="notes-header-name">Notes on TeXmacs</em>
      </p>
    </div>
    <p>
      <a id="auto-1"></a>
    </p>
    <h1>The Macro editor and easy macro modification<span style="margin-left: 1em"></span></h1>
    <div class="notes-abstract">
      The Macro editor is a shortcut tool for examining and modifying macro
      definitions; it can be used as well to write a new macro starting from
      an existing macro. We look at its use with the help of two examples.
    </div>
    <p>
      The TeXmacs editor offers the possibility of examining and modifying
      macro definitions through a &ldquo;shortcut&rdquo; tool, without having
      to know in which style file or package they are defined. 
    </p>
    <p>
      The tool is called &ldquo;Macro editor&rdquo;, and the modifications
      made via the Macro editor are saved in the preamble of the current
      document, while original definitions of macros are preserved in their
      respective files. The Macro editor can be used as well to write up a new
      macro starting from an existing macro.
    </p>
    <p>
      Let us examine two examples. 
    </p>
    <h2 id="auto-2">1.<span style="margin-left: 1em"></span>Colored todo notes<span style="margin-left: 1em"></span></h2>
    <p>
      TeXmacs has a <font class="tmweb-markup">todo</font> macro which typesets its
      arguments (a reminder to self, let's say) with red font on a light red
      background, surrounded by brackets: <font color="#800000">[write a helpful blog
      post]</font>.
    </p>
    <p>
      Let us see how to change the macro to have colored notes in different
      colors. The Macro editor is accessible from macro applications
      themselves, so we insert a <font class="tmweb-markup">todo</font> macro by typing <tt
      class="verbatim">\todo</tt> obtaining a red &ldquo;todo&rdquo; field: <font color="#800000">[]</font>.
      With the cursor inside the (already typeset) macro field, a button that
      invokes the Macro editor becomes available in the TeXmacs tool ribbons;
      in Figure <a href="#fig:macro-editor-wrench">1</a> we highlight the &ldquo;wrench&rdquo; button.
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-1.The macro editor 01 - edited.png" width="562.33568"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 1. </b><a id="auto-3"></a>The Macro editor appears among the
              tools as the wrench icon <img class="image" src="macro-editor-2.tm_focus_prefs.png" height="14.058392" width="14.058392"></img>
              when the cursor is in a macro field (the icon is in this figure
              highlighted and connected to the macro with the arrow).<a id="fig:macro-editor-wrench"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      Clicking on the wrench button a menu appears, and we select &ldquo;Edit
      macro&rdquo; (Figure <a href="#fig:macro-edit-menu">2</a>); selecting &ldquo;Edit
      source&rdquo; would bring us to the location (package or style file)
      where the macro is defined.
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-3.The macro editor 02 - edited.png" width="562.33568"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 2. </b><a id="auto-4"></a>The macro editing
              (&ldquo;wrench&rdquo;) menu.<a id="fig:macro-edit-menu"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      Clicking on &ldquo;Edit macro&rdquo; brings up the &ldquo;Edit
      macro&rdquo; window, the protagonist of this blog post (Figure <a href="#fig:macro-editor-window">3</a>).
      Let us ignore in this blog post the menu items <class class="tmweb-menu" style="font-family: sans-serif">Todo
      bg color</class><a id="auto-5"></a> and <class class="tmweb-menu" style="font-family: sans-serif">Todo
      color</class><a id="auto-6"></a>, which would also allow a customization of the
      macro but do not have the general applicability of the macro editor.
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-4.The macro editor 03.png" height="345.8364432" width="565.1473584"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 3. </b><a id="auto-7"></a>The Macro editor window.<a id="fig:macro-editor-window"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      The first view is the &ldquo;text view&rdquo;, where the macro is
      represented in typeset form (as in the text mode of TeXmacs); in this
      case it results in a <font class="tmweb-markup">todo</font> note which displays the
      name of the variable in the macro definition (<font color="#800000">[body]</font>).
      We are interested in the source so we select &ldquo;Source&rdquo; from
      the drop-down menu at the bottom left (Figure <a href="#fig:macro-text-mode">4</a>).
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-5.The macro editor 04 - edited.png" width="562.33568"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 4. </b><a id="auto-8"></a>The <font class="tmweb-markup">todo</font> macro
              in text mode inside the Macro editor.<a id="fig:macro-text-mode"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      The macro now is represented in source mode and we can edit it (Figure
      <a href="#fig:macro-source-mode">5</a>).
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-6.The macro editor 05.png" width="562.33568"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 5. </b><a id="auto-9"></a>The <font class="tmweb-markup">todo</font> macro
              in source mode inside the Macro editor.<a id="fig:macro-source-mode"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      We would like to have green <font class="tmweb-markup">todo</font> notes. We identify
      tentatively the two variables <font color="#008000"><i>todo-color</i></font> and
      <font color="#008000"><i>todo-bg-color</i></font> as the color of the text and
      the color of the background&mdash;it looks reasonable, and if this does
      not work, we can check how the macro <font class="tmweb-markup">render-todo</font> is
      composed (in TeXmacs 1.99.18, which I am using to write this blog post,
      a bug prevents one to do this for the macro <font class="tmweb-markup">render-todo</font>
      through the macro editor&mdash;the attempt makes TeXmacs crash&mdash;so
      if you want to check that macro please use the <class class="tmweb-menu" style="font-family: sans-serif">Edit
      source</class><a id="auto-10"></a> entry of the &ldquo;wrench&rdquo; menu and the
      file <tt class="verbatim">std-markup.ts</tt> will open at the position of the code
      for <font class="tmweb-markup">render-macro</font>; the discussion of the <font class="tmweb-markup">todo</font>
      example works despite this bug).
    </p>
    <p>
      We can check the values of the environment variables (see <a href="https://www.texmacs.org/tmweb/manual/webman-env.en.html">Standard
      environment variables</a> for a general discussion of the environment
      variables ) by typing them preceded by a backslash and pressing <font
      class="tmweb-key">Return</font> (for this we can either switch out of the macro
      editor and use the usual TeXmacs editor or we can set the macro editor
      to Text mode): <font color="#008000"><i>todo-color</i></font> evaluates to dark
      red and <font color="#008000"><i>todo-bg-color</i></font> to pastel red. Let us
      then substitute dark green and pastel green for them.
    </p>
    <p>
      To type our new text in place of either <font color="#008000"><i>todo-color</i></font>
      or <font color="#008000"><i>todo-bg-color</i></font>, we first click
      <strong>four</strong> times onto it to select its name and the
      surrounding markup&mdash;clicking twice selects one of the words in the
      compound name of the variable (between hyphens), clicking three times
      selects the whole variable name without the <font class="tmweb-markup">value</font>
      markup surrounding it&mdash;and then we type over it the text that we
      wish to: &ldquo;dark green&rdquo; (without the quotes) in place of <font
      color="#008000"><i>todo-color</i></font> and &ldquo;pastel green&rdquo;
      (likewise) in place of <font color="#008000"><i>todo-bg-color</i></font>.
    </p>
    <p>
      In Figure <a href="#fig:environment-variable-selected">6</a> we show the effect of clicking three or four
      times on the environment variable. When clicking three times (shown on
      the left side of the image), the <font class="tmweb-markup">value</font> markup
      surrounding the variable name is not enclosed in the selection, which in
      this case does not reach the focus frame, as shown in the magnified view
      on the bottom; when clicking four times (as in the right side of the
      image), the selection reaches the edge of the focus frame and encloses
      the <font class="tmweb-markup">value</font> markup.
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-7.The macro editor 06 - marked.png" width="365.518192"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 6. </b><a id="auto-11"></a>The environment variable <font
              color="#008000"><i>todo-color</i></font> selected clicking three times
              (upper left) and four times (upper right). When clicking three
              times, the <font class="tmweb-markup">value</font> markup surrounding the
              variable name is not enclosed in the selection, which does not
              reach the focus frame (magnified view at the bottom); when
              clicking four times, the selection extends to the whole focus
              frame and encloses the <font class="tmweb-markup">value</font> markup.<a id="fig:environment-variable-selected"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      Clicking the <class class="tmweb-menu" style="font-family: sans-serif">Ok</class><a id="auto-12"></a> or the <class
      class="tmweb-menu" style="font-family: sans-serif">Apply</class><a id="auto-13"></a> button will save the edited macro
      in the document preamble.
    </p>
    <p>
      TeXmacs will save to the preamble the contents of the Macro editor
      window, so if one leaves the macro name as it is, the macro saved in the
      preamble is executed by TeXmacs in place of the original macro (while
      the original definition is not overwritten, the macro editor modifies
      only the current file). Changing in stead the name of the macro leaves
      the original definition in force&mdash;and one has a new macro with the
      new definition.
    </p>
    <p>
      Let us then in our example change the macro name to <font class="tmweb-markup">todo-green</font>,
      by clicking inside the <font class="tmweb-markup">todo</font> field on top and typing,
      we will have then a new macro available&mdash;repeating ourselves, if we
      hadn't, the <font class="tmweb-markup">todo</font> macro would have pointed to the new
      definition we are saving in our preamble, and in this case all of the
      <font class="tmweb-markup">todo</font> fields would have become green, including the
      ones we had already written. You can see the edited macro in Figure <a
      href="#fig:todo-macro-edited-green">7</a>.
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-8.The macro editor 07.png" width="562.33568"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 7. </b><a id="auto-14"></a>The &ldquo;green&rdquo; version of
              the <font class="tmweb-markup">todo</font> macro, which we named <font class="tmweb-markup">todo-green</font><a
              id="fig:todo-macro-edited-green"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      Press <class class="tmweb-menu" style="font-family: sans-serif">Ok</class><a id="auto-15"></a> to close the Macro
      editor confirming the changes, and we can see the new macro <font class="tmweb-markup">todo-green</font>
      in our preamble: select <class class="tmweb-menu" style="font-family: sans-serif">Part</class>&rarr;<class
      class="tmweb-menu" style="font-family: sans-serif">Show preamble</class><a id="auto-16"></a> (in the
      &ldquo;Notes&rdquo; style: in other styles it is <class class="tmweb-menu" style="font-family: sans-serif">Document</class>&rarr;<class
      class="tmweb-menu" style="font-family: sans-serif">Part</class>&rarr;<class class="tmweb-menu" style="font-family: sans-serif">Show
      preamble</class><a id="auto-17"></a>). We look at it in Figure <a href="#fig:preamble">8</a>.
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-9.The macro editor 08 - marked.png" height="345.8364432" width="566.5531976"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 8. </b><a id="auto-18"></a>The preamble of our document after
              saving the <font class="tmweb-markup">todo-green</font> macro we composed
              starting from the <font class="tmweb-markup">todo</font> macro. The arrow and
              the oval highlight the TeXmacs notification that we are looking
              at the preamble.<a id="fig:preamble"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      We can now use the new macro: <font color="#008000">[I would like to have blue
      notes too!]</font> and <span style="margin-left: 0.16665em"></span>.<span style="margin-left: 0.16665em"></span>.<span
      style="margin-left: 0.16665em"></span>.<span style="margin-left: 0.16665em"></span> <font color="#000080">[here is a blue todo
      note :-)]</font> (to do this, I started again from a <font class="tmweb-markup">todo</font>
      note and applied again the Macro editor).
    </p>
    <p>
      For colors which do not have a name in TeXmacs, one can use HTML codes;
      if TeXmacs does not recognize a color name, it uses black.
    </p>
    <h2 id="auto-19">2.<span style="margin-left: 1em"></span>More choice<span style="margin-left: 1em"></span></h2>
    <p>
      In math mode the macro <font class="tmweb-markup">choice</font> inserts a left brace
      that introduces a vertical list, represented with the help of a table.
    </p>
    <p>
      Here it is, inserted by typing <tt class="verbatim">\choice</tt> <font class="tmweb-key">Return</font>
      inside a display math environment; we placed two elements inside it:
    </p>
    <table width="100%">
      <tr>
        <td width="100%" align="center"><img src="macro-editor-10.png" style="margin-left: -0.0206868686868687em; margin-bottom: 0.0153939393939394em; margin-right: -0.0206868686868686em; margin-top: -0.0345454545454545em; vertical-align: -0.655232323232323em; height: 1.67345454545455em" id="eq:choice-macro"></img></td>
        <td align="right">(1)</td>
      </tr>
    </table>
    <p>
      Using the Macro editor, let's build a new macro that places the brace on
      the right.
    </p>
    <p>
      The first step is again placing the cursor in the macro input field (in
      the vector next to the brace in this case) and pressing the wrench key
      in the toolbar. The Macro editor window in this case shows the typeset
      macro in math mode (Figure <a href="#fig:choice_macro_math_mode">9</a>).
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-11.The macro editor 8.png" width="566.5531976"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 9. </b><a id="auto-20"></a>Editing the <font class="tmweb-markup">choice</font>
              macro in the Macro editor.<a id="fig:choice_macro_math_mode"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      The source mode representation of the macro is complex (Figure <a href="#fig:choice_macro_source_mode">10</a>),
      but maybe we do not need to know what is the <font class="tmweb-markup">math-table-base</font>
      macro, nor what are <font color="#008000"><i>cell-swell</i></font> and <font
      color="#008000"><i>table-math-swell</i></font>; let's try.
    </p>
    <p>
      Let us notice the two paired delimiters <font color="blue">&lt;</font>left<font
      color="blue">|</font><font color="black">{</font><font color="blue">&gt;</font> and <font
      color="blue">&lt;</font>right<font color="blue">|</font><font color="black">.</font><font
      color="blue">&gt;</font>: we have to swap them. Of course, the left brace must
      become a right brace.
    </p>
    <p>
      As a second step, let us guess that the macro <font class="tmweb-markup">math-table-base</font>
      and the variables <font color="#008000"><i>cell-swell</i></font> and <font
      color="#008000"><i>table-math-swell</i></font> determine the placement of the
      &ldquo;vector of choice&rdquo; with respect to the brace. We do not know
      whether <font class="tmweb-markup">math-table-base</font> distinguishes right from
      left in such a way that the placement of the vector with respect to a
      closing brace would be awkward with the default settings of <font color="#008000"><i>cell-swell</i></font>
      and <font color="#008000"><i>table-math-swell</i></font>,
      but&mdash;again&mdash;let us try and see what happens!
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-12.The macro editor 9.png" width="566.5531976"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 10. </b><a id="auto-21"></a>The source mode representation of
              the <font class="tmweb-markup">choice</font> macro.<a id="fig:choice_macro_source_mode"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      After swapping the position of the brace and the dot, the macro (which
      we named <font class="tmweb-markup">choice-right)</font> looks like in Figure <a href="#fig:choice_macro_source_mode">10</a>.
      We press <class class="tmweb-menu" style="font-family: sans-serif">Ok</class><a id="auto-22"></a> to save the new
      macro in our preamble.
    </p>
    <div style="margin-top: 1em; margin-bottom: 1em">
      <table style="width: 100%">
        <tbody><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em"><img class="image" src="macro-editor-13.The macro editor 10.png" width="566.5531976"></img></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; height: 0.5em"></td>
        </tr><tr>
          <td style="text-align: center; padding-left: 0em; padding-right: 0em; padding-left: 1.5em; padding-right: 1.5em"><div class="caption">
            <font style="font-size: 90.0%"><p>
              <b>Figure 11. </b><a id="auto-23"></a>The modified <font class="tmweb-markup">choice</font>
              macro, now named <font class="tmweb-markup">choice-right</font>.<a id="fig:choice_right_macro_source_mode"></a>
            </p></font>
          </div></td>
        </tr></tbody>
      </table>
    </div>
    <p>
      We have to test it now. Let us type <tt class="verbatim">\choice-right</tt>, then
      <font class="tmweb-key">Return</font> inside a display math environment, next to a
      <font class="tmweb-markup">choice</font> and place the same two elements into both
      constructs:
    </p>
    <table width="100%">
      <tr>
        <td width="100%" align="center"><img src="macro-editor-14.png" style="margin-left: -0.0206868686868687em; margin-bottom: 0.0153939393939394em; margin-right: -0.0206868686868695em; margin-top: -0.0345454545454545em; vertical-align: -0.655232323232323em; height: 1.67345454545455em"></img></td>
        <td align="right">(2)</td>
      </tr>
    </table>
    <p>
      The representation looks visually balanced, and we can keep the <font
      class="tmweb-markup">choice-right</font> macro that we have written (and that now is
      in our preamble).
    </p>
    <p>
      If we had not been happy, we would have had to figure out what the <font
      class="tmweb-markup">math-table-base</font> macro does. Perhaps there too the first
      step could be looking at the macro in the Macro editor!
    </p>
    <h2 id="auto-24">3.<span style="margin-left: 1em"></span>Conclusion<span style="margin-left: 1em"></span></h2>
    <p>
      If you want to modify a macro, place your cursor into it and open it
      with the Macro editor. If you see a likely candidate to change, change
      it and look at the result: you might immediately achieve what you want.
    </p>
    <p>
      If the macro looks too complex to be interpreted intuitively, or
      modifying it des not yield the result you expect, you can look for more
      detailed explanations in the manual; link to the manuals in various
      languages in pdf format are in the <a href="http://texmacs.org/tmweb/help/book.en.html">TeXmacs manuals</a> webpage
      and the web version is at <a href="https://www.texmacs.org/tmweb/manual/web-manual.en.html">web manual</a>. 
    </p>
    <p>
      You can also ask for help on
    </p>
    <ul>
      <li>
        <p>
          The <tt class="verbatim">texmacs-users</tt> mailing list (see instructions for
          subscribing at <a href="http://texmacs.org/tmweb/home/ml.en.html">Mailing lists for TeXmacs</a>)
        </p>
      </li>
      <li>
        <p>
          The <a href="http://forum.texmacs.cn/">TeXmacs forum</a>
        </p>
      </li>
    </ul>
    <p>
      
    </p>
  </body>
</html>